<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="/layui/css/layui.css">
    <link rel="stylesheet" href="/css/custom.form.css">
</head>
<body>
<div class="file_table_div">
    <table class="layui-hide" id="tomcat_table" lay-filter="tomcat_table"></table>
</div>
</body>
<script src="/layui/layui.js"></script>
<script src="/js/core.util.js"></script>
<script>
    layui.use(['table','laypage','jquery','layer'],function () {
        var table=layui.table;
        var laypage=layui.laypage;
        var $=layui.jquery;
        var layer=layui.layer;
        CoreUtil.sendAjax("/api/tomcat",null,function (res) {
            if(res.data!=null){
                loadTable(res.data);
            }
        },"GET",false);

        //渲染table
        var loadTable=function (data) {
            //展示已知数据
            table.render({
                elem: '#tomcat_table'
                ,cols: [
                    [
                        {field: 'paramName', title: '参数名称', width: 200},
                        {field: 'describe', title: '参数描述', width: 300},
                        {field: 'value', title: '当前值', width: 300}
                    ]
                ]
                ,data: data
            });
        };

    });
</script>